rules=[
    [r"@0Oo (.*)=(.*)","$1$=$2$"],
    [r"oooo\((.*)\)","exit($1$)"],
    [r"O0oo\((.*)\)","print($1$)"],
    [r"oooo\(\)","exit()"],
    [r"0O\((.*)\):","if($1$):"],
    [r"0Oo\((.*)\):","elif($1$):"],
    [r"0OO:","else:"],
    [r"OOO\((.*)\):","while($1$):"],
    [r"ooo\((.*) in (.*)\):","for $1$ in $2$:"],
    [r"(.*)\((.*)\)","$1$($2$)"],
]